home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 5 / Apprentice-Release5.iso / Environments / Oberon⁄F™ 1.2 / Preinstalled version / Std / Docu / Coder (.txt) < prev    next >
Encoding:
Oberon Document  |  1996-07-08  |  5.5 KB  |  65 lines  |  [oODC/obnF]

  1. Documents.StdDocumentDesc
  2. Documents.DocumentDesc
  3. Containers.ViewDesc
  4. Views.ViewDesc
  5. Stores.StoreDesc
  6. Documents.ModelDesc
  7. Containers.ModelDesc
  8. Models.ModelDesc
  9. Stores.ElemDesc
  10. TextViews.StdViewDesc
  11. TextViews.ViewDesc
  12. TextModels.StdModelDesc
  13. TextModels.ModelDesc
  14. TextModels.AttributesDesc
  15. Geneva
  16. Geneva
  17. Geneva
  18. Geneva
  19. Geneva
  20. TextRulers.StdRulerDesc
  21. TextRulers.RulerDesc
  22. TextRulers.StdStyleDesc
  23. TextRulers.StyleDesc
  24. TextRulers.AttributesDesc
  25. Geneva
  26. StdCoder
  27. StdCoder (or Coder for short) can be used to encode a document, a text stretch, or files into a textual form, which can be sent e.g. through e-mail. The output is a normal Oberon/F text, which can be included into any Oberon/F document.
  28. The encoding uses characters which are expected not to be changed by any mail system. White space characters (blanks, tabs, new lines, etc.) might be added or removed arbitrarily since they are ignored upon decoding.
  29. For decoding a single command is available, which generates an object of the same kind as the encoded original. Upon decoding a document or a text stretch a new window will be opened. Files will be stored on disk.
  30. Suggested entries for a Coder menu:
  31. MENU "Coder"
  32.     "Encode Document"    ""    "StdCoder.EncodeDocument"       "StdCmds.WindowGuard"
  33.     "Encode Selection"    ""    "StdCoder.EncodeSelection"    "TextCmds.SelectionGuard"
  34.     "Encode File..."    ""    "StdCoder.EncodeFile"    ""
  35.     "Encode File List"    ""    "StdCoder.EncodeFileList"    "TextCmds.SelectionGuard"
  36.     "Decode"    ""    "StdCoder.Decode"    "TextCmds.FocusGuard"
  37. PROCEDURE EncodeDocument
  38. Guard: StdCmds.WindowGuard
  39. Encodes the document in the current focus window and opens a new window with the generated code.
  40. PROCEDURE EncodeSelection
  41. Guard: TextCmds.SelectionGuard
  42. Encodes the current text selection, and opens a new window with the generated code.
  43. PROCEDURE EncodeFile
  44. Encodes one file determined through the standard file opening dialog and opens a new window with the generated code.
  45. PROCEDURE EncodeFileList
  46. Guard: TextCmds.SelectionGuard
  47. Encodes several files and opens a new window with the generated code.
  48. A list of valid file names must be selected. File names must be specified with their complete path name relative to the Oberon/F directory. (Files not being in the Oberon/F subtree currently cannot be encoded.) Use the slash character ("/") to separate the individual parts of the path name. (Example: Std/Code/Coder .)
  49. The path name is stored along with the encoding to allow for easy decoding of entire file packages. However, sometimes a file is kept in a different place than where it should be installed later. In such a case, a path name mapping can be specified. The path name to be used for decoding can be given after an "arrow" ("=>").
  50. Example: NewStd/Code/NewCoder => Std/Code/Coder will lead to encoding of the file NewCoder in the directory NewStd/Code, but for decoding the name Std/Code/Coder will be used.
  51. PROCEDURE Decode
  52. Guard: TextCmds.FocusGuard
  53. Decodes the information in an encoded text. The latter must be in the front window. The command scans for a tag that marks the beginning of a code sequence. The tag is "StdCoder.Decode". This allows to have e-mail headers and other text preceding the actual code. If a text selection is active in the front window, scanning will start at the beginning of that selection.
  54. Depending on the kind of data encoded, one of several possible actions will be taken:
  55. -    if a document is encoded, it is opened in a new window.
  56. -    if a single file is encoded, the standard file store dialog is opened allowing to store the file.
  57. -    if a list of files is encoded, a special dialog is opened allowing to select files for decoding. The path names included during the encoding are given in a list. One or several files can be selected from that list. A command button allows to decode the selected files. If only one file is selected, the path name can be changed or the standard file store dialog can be used to browse the directory hierarchy. Another command button allows to decode all files, regardless of the selection.
  58. Note: The dialog should always be closed using the cancel button to allow StdCoder to release resources allocated temporarily to manage the dialog.
  59. TextControllers.StdCtrlDesc
  60. TextControllers.ControllerDesc
  61. Containers.ControllerDesc
  62. Controllers.ControllerDesc
  63. Geneva
  64. Documents.ControllerDesc
  65.